'use strict'

const Service = require('egg').Service

class MySQLService extends Service {
  async get(tableName , id) {
    console.log(` get table info ${tableName} by id:${id}`);
  }
  async query(tableName , param) {
    console.log(` query table info ${tableName} by param ${param}`);
  }
  async post(tableName , data){
    console.log(` post table info ${tableName} by data ${data}`);
  }
  async patch(tableName , id , data){
    console.log(` patch table info ${tableName} by id:${id} and data ${data}`);
  }
  async delete(tableName , ids){
    console.log(` delete table info ${tableName} by ids:${ids}`);
  }
}

module.exports = MySQLService
